AudioDeviceListChangedEvent

The current audio devices, after a device was connected or disconnected.

interface AudioDeviceListChangedEvent {
    inputs: MediaDeviceInfo[];
    outputs: MediaDeviceInfo[];
    timestamp: number;
}

About

Passed to the callback of watchAudioDevices() and to the devices-changed event of AudioDevice.

Properties

  • inputs: MediaDeviceInfo[] - All devices of kind "audioinput", the same as listAudioInputDevices().
  • outputs: MediaDeviceInfo[] - All devices of kind "audiooutput", the same as listAudioOutputDevices().
  • timestamp: number - Date.now() at the moment the devices were enumerated.